<template>
  <div class="home-films">
    <h1>电影页面</h1>
    <van-button type="primary">主要按钮</van-button>

    <van-empty description="描述文字" />
  </div>
</template>

<script>
// import axios from 'axios'
import myAxios from "@/utils/request.js";

import { Empty } from "vant";

export default {
  // 局部注册组件
  components: {
    [Empty.name]: Empty,
  },

  mounted() {
    myAxios.get("/banners").then((res) => {
      console.log("请求成功 - ", res);
    });
  },
};
</script>
